package com.jiyun.mapper;

import com.jiyun.entity.UserTask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 聪哥哥
 * @since 2023-03-10
 */
public interface UserTaskMapper extends BaseMapper<UserTask> {

    @Select("select uid from tb_user_task where tid=#{tid}")
    List<Integer> findZhong(Integer tid);

    @Delete("delete from tb_user_task where tid=#{id}")
    void deleteZhong(Integer id);
}
